package com.qingk.easyjava.beanfactory;

public class MyBeanFactoryDemo {

	public static void main(String[] args) {
		MyBeanFactory mbf = new MyBeanFactory();
		MyBean mb = (MyBean)mbf.getBean("hello");
		mb.init();
		
		MyBean mb2 = mbf.getBean("hello", MyBean.class);
		mb2.init();
		
		System.out.println(mb==mb2);
		
	}

}
